

{% extends "bootstrap/base.html" %}
{% block title %}
    修改用户密码
{% endblock %}
{% include 'nav.html' %}
{% block content %}
<body background="{{ url_for('static', filename='images/background.jpg') }}">
<div class="container login-page" style="padding-top: 20px">
    <div class="row">
        <div class="col-md-4 col-lg-offset-4">
            {% for category, message in get_flashed_messages(with_categories=true) %}
                <div class="alert alert-{{ category }} alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                    {{ message }}
                </div>
            {% endfor %}
            <h3 class="text-center">修改用户密码</h3>
            <form class="form-horizontal" role="form" method="post" action="">
                {{ form.hidden_tag() }}
                为{{ user.username }}修改密码
                <div class="form-group">
                    {{ form.password1.label(class='col-sm-3 control-label') }}
                    <div class="col-sm-9">
                        <div class="input-group">
                            {{ form.password1(class='form-control', placeholder='请输入密码', required='') }}
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    {{ form.password2.label(class='col-sm-3 control-label') }}
                    <div class="col-sm-9">
                        <div class="input-group">
                            {{ form.password2(class='form-control', placeholder='请再次输入密码', required='') }}
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-3 col-sm-9">
                        <button type="submit" class="btn btn-default">修改密码</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
{% endblock %}
